package net.maku.framework.common.constant;

/**
 * 正则表达式
 */
public class RegexConstants {
    /**
     * 手机号正则
     */
    public static final String PHONE_REGEX = "^(13[0-9]|14[579]|15[0-35-9]|166|17[01345678]|18[0-9]|19[89])\\d{8}$";
    /**
     * 密码正则 (至少6位，且含有数字，字符，特殊字符中的俩种)
     */
    public static final String PASSWORD_REGEX = "^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{6,}$|^(?=.*[0-9])(?=.*[a-zA-Z]).{6,}$|^(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{6,}$|^(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{6,}$";
}
